package com.huli.service.impl;

import com.huli.dao.OwnerIncomeMapper;
import com.huli.domain.OwnerIncome;
import com.huli.dto.OwnerIncomeDto;
import com.huli.param.OwnerIncomeParam;
import com.huli.service.OwnerIncomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OwnerIncomeServiceImpl implements OwnerIncomeService {
    @Resource
    OwnerIncomeMapper ownerIncomeMapper;

    @Override
    public List<OwnerIncome> selectOwnerDayIncomeById(int ownerId) {
        return ownerIncomeMapper.selectOwnerDayIncomeById(ownerId);
    }

    @Override
    public OwnerIncomeDto selectOwnerMonthIncomeById(OwnerIncomeParam ownerIncomeParam) {
        return ownerIncomeMapper.selectOwnerMonthIncomeById(ownerIncomeParam);
    }
}
